<%@ page import="java.util.Date" %>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>

<jsp:useBean id="user" class="com.kk.entity.User"></jsp:useBean>
<jsp:setProperty name="user" property="name" value="yizheng"></jsp:setProperty>
<jsp:getProperty name="user" property="name"/>

<%
    String username = "yuanyizheng1-----kkk";
%>
<div>
    <div id="weixin"></div>
    <script>
        var wx = new WxLogin({
            id: 'weixin',
            appid: "wx7287a60bb700fd21",
            scope: 'snsapi_login',
            redirect_uri: window.decodeURI("http://www.txjava.cn/loginServlet")
        })
    </script>
</div>
</body>
</html>

<%=username%>

<%=new Date()%>

<br/>
<a href="hello-servlet">Hello Servlet</a>
</body>
</html>